package com.mianle.userapi.util;

import com.mianle.userapi.config.BaseConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PwdTools {
    @Autowired
    private BaseConfig baseConfig;
    public String createPwd(String pwd){
        String salt = baseConfig.getJwtSalt();
        String passWord = Hmacsha256.create(pwd,salt);
        return passWord;
    }
}
